function randomString(len, chars) {
    let result = '';
    for (let i = len; i > 0; --i) {
        result += chars[Math.round(Math.random() * (chars.length - 1))];
    }
    return result;
}

const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';

function paramsGenerator() {
    let len = Math.floor(Math.random() * 1000)
    return randomString(len, chars);
}

export default {
    paramsGenerator
}

// TEST
// for (let i = 0; i < 10; i++) {
//     console.log(paramsGenerator())
// }